macos: use video mode for refresh rate and interval
authorChristian Hergert <christian@hergert.me>
Mon, 28 Feb 2022 07:17:40 +0000 (23:17 -0800)
committerChristian Hergert <chergert@redhat.com>
Wed, 16 Mar 2022 19:24:11 +0000 (12:24 -0700)
commitdf2fb3b5209dcb0740a0af6d8fde5b490e310169
tree4633fc283cf0f7d35e6a5b1a8273e8b7310304ab
parent48c650c1021fc263f7ac9d00e84bfba19b789c05
macos: use video mode for refresh rate and interval

Using the mode allows better detection of refresh rate and refresh
interval for the CVDisplayLink bridge to GdkFrameClock. Using it can help
ensure that our 144hz displays can actually reach that rather than falling
back to just 60hz.

This will also need future commits to rework the displaylink source to be
per-monitor.
gdk/macos/gdkdisplaylinksource.c
gdk/macos/gdkdisplaylinksource.h